<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="AddNewsServlet" enctype="multipart/form-data" method="post">
    标题：<input type="text" name="title"><br/>
    所属版块：<select name="blockid">
                <option value="">--请选择所属版块--</option>
                <c:forEach items="${blockList}" var="b">
                    <option value="${b.blockid}">${b.blockName}</option>
                </c:forEach>
            </select>
    <br/>
    图片：<input type="file" name="pic"><br/>
    内容：<textarea name="context"></textarea>
    <input type="submit" value="发布">
</form>
</body>
</html>
